package com.zmht.beike.biz;

import java.util.List;

import com.zmht.beike.core.BaseBiz;
import com.zmht.beike.po.TCweekcontent;

public interface CweekcontentBiz extends BaseBiz {
	/**
	 * 添加周主题内容
	 * @param content
	 * @return
	 */
	public boolean saveCweekContent(TCweekcontent content);
	/**
	 * 根据id 删除
	 * @param id
	 * @return
	 */
	public boolean deleteCweekContent(java.io.Serializable id);
	/**
	 * 根据当前用户查询所有月主题记录
	 * @param teacherId
	 * @param startIndex
	 * @param pageSize
	 * @return
	 */
	public List getCweekContents(Integer teacherId,Integer week,Integer month,int startIndex,int pageSize);
	/**
	 * 获得未保存的周主题的内容记录总数
	 * @param teacherId
	 * @return
	 */
	public int getCweekContentTotal(Integer teacherId,Integer week,Integer month);
	/**
	 * 更新记录（保存周主题后 更新内容）
	 * @param content
	 * @return
	 */
	public boolean updateCweekContent(TCweekcontent content);
	/**
	 * 根据id 获得结果
	 * @param id
	 * @return
	 */
	public TCweekcontent findById(java.io.Serializable id);
	/**
	 * 获得周
	 * @param targetId
	 * @param teacherId
	 * @param week
	 * @param startIndex
	 * @param pageSize
	 * @return
	 */
	public List getCweekContentsEdit(Integer targetId,Integer teacherId,Integer month,Integer week,Integer areaId,int startIndex,int pageSize);
	/**
	 * 获得记录总数
	 * @param targetId
	 * @param teacherId
	 * @param week
	 * @return
	 */
	public int getCweekContentsEditTotal(Integer targetId,Integer teacherId,Integer areaId,Integer month,Integer week);
}
